#ifndef SOCKETCLIENT_H
#define SOCKETCLIENT_H

#include <QLocalSocket>
#include <QObject>
#include "command.h"

class SocketClient : public QObject
{
    Q_OBJECT
public:
    explicit SocketClient(qintptr socketdescriptor,QLocalSocket *socket);
    ~SocketClient();
    qintptr m_socketdescriptor;
    QLocalSocket *m_socket;

signals:
    void Disconnect(qintptr);
    void BackGroundCommand(Command);

private slots:
    void OnDisconnect();
    void OnReadData();
};

#endif // SOCKETCLIENT_H
